package com.aaa.query;

import lombok.Data;

import java.io.Serializable;

/**
 * create by: 刘涛
 * description: 分页条件
 * create time: 2021/1/29 16:12
 *
  * @Param: null
 * @return
 */

@Data
public class PageQuery implements Serializable {

    private Integer page;
    private  Integer count;

    public Integer getIndex(){
        return (page-1)*count;
    }
}
